function HandleCPAssistantNoCheck(gui, user, date, options, data) {
  this._gui = gui;
  this._user = user;
  this._date = date;
  this._options = options;
  this._data = data;
  
  this._search = PPublishUtils.processingSearch();
  this._page = 1;
  this._order = 't.deadline';
  this._queue = 'ASC';
  
  this._popupBox = new ModulePopupBox();
  this._createElements();
};

HandleCPAssistantNoCheck.prototype._createElements = function() {
  var _self = this;
  DOMUtils.removeChildElements(this._gui.page);
  
  var smryGui = AbsSmryViewAll.gui();
  var smryArgs = PPublishUtils.viewallSmryArgs(smryGui, this._user);
  
  if (smryGui && smryArgs) {
    new HandleSmry(smryGui, null, { args: smryArgs });
  }
  
  if (this._data[0].total > this._data[0].size) {
    //*** Here ***
    new ModulePagination(document, this._gui.page, 500, 50, this._user, this._date, {page: this._data[0].page, total: this._data[0].total, limit: this._data[0].size, callbackFunc: function(page) { _self._page = page; _self._retrieveTasks.call(_self); }, context: this});
  }
  
  var gui = AbsSearchTask.gui(this._gui.searchCustomerNo, this._gui.searchTag, this._gui.searchTask, this._gui.searchDateFrom, this._gui.searchDateTo, this._gui.searchPhotoUploaded, this._gui.searchDesignUploaded, this._gui.search);
  //*** Here ***
  new HandleSearchTask(gui, this._user, this._date, { search: this._search /* Added */, callbackFunc: function(search) { _self._search = search; _self._page = 1; _self._retrieveTasks.call(_self); } }, this._data);
  
  if (this._gui.lastUpdates) {
    new HandleProduceLastUpdated(this._gui, this._user, this._date, this._options, this._data);
  }

  this._gui.branch.onclick = function(order) { _self._order = 't.branch'; _self._queue = (_self._queue && _self._queue == 'ASC') ? 'DESC' : 'ASC'; _self._retrieveTasks.call(_self); return false; };
  this._gui.customerNo.onclick = function(order) { _self._order = 't.customer_id'; _self._queue = (_self._queue && _self._queue == 'ASC') ? 'DESC' : 'ASC'; _self._retrieveTasks.call(_self); return false; };
  this._gui.createdDate.onclick = function(order) { _self._order = 't.created_date'; _self._queue = (_self._queue && _self._queue == 'ASC') ? 'DESC' : 'ASC'; _self._retrieveTasks.call(_self); return false; };
  this._gui.receivedDate.onclick = function(order) { _self._order = 't.received_date'; _self._queue = (_self._queue && _self._queue == 'ASC') ? 'DESC' : 'ASC'; _self._retrieveTasks.call(_self); return false; };
  this._gui.photographer.onclick = function(order) { _self._order = 't.photographer_id'; _self._queue = (_self._queue && _self._queue == 'ASC') ? 'DESC' : 'ASC'; _self._retrieveTasks.call(_self); return false; };
  this._gui.photographer2.onclick = function(order) { _self._order = 't.photographer2_id'; _self._queue = (_self._queue && _self._queue == 'ASC') ? 'DESC' : 'ASC'; _self._retrieveTasks.call(_self); return false; };
  this._gui.designer.onclick = function(order) { _self._order = 't.designer_id'; _self._queue = (_self._queue && _self._queue == 'ASC') ? 'DESC' : 'ASC'; _self._retrieveTasks.call(_self); return false; };
  this._gui.task.onclick = function(order) { _self._order = 't.state_id'; _self._queue = (_self._queue && _self._queue == 'ASC') ? 'DESC' : 'ASC'; _self._retrieveTasks.call(_self); return false; };
  this._gui.wd.onclick = function(order) { _self._order = 't.deadline'; _self._queue = (_self._queue && _self._queue == 'ASC') ? 'DESC' : 'ASC'; _self._retrieveTasks.call(_self); return false; };
  
  //*** Here ***
  GuiUtils.tasks(this._gui, this._user, this._date, this._data, function() { _self._retrieveTasks.call(_self); }, function() { _self._retrieveNotes.call(_self); }, function() { _self._retrieveEvents(_self); });
};

HandleCPAssistantNoCheck.prototype._retrieveTasks = function(pos) {
  var _self = this;
  var base = this._data['cond'];
  var args = '&c=' + JSON.stringify(((base) ? base + ' AND ' + HandleSearchTask.toSql(this._search, this._data['pz_model'], this._data['pz_model_state']) : HandleSearchTask.toSql(this._search, this._data['pz_model'], this._data['pz_model_state']))) + '&ts=' + JSON.stringify(this._data['table_select']) + '&tj=' + JSON.stringify(this._data['table_join']) + '&o=' + this._order + '&q=' + this._queue + '&p=' + this._page;
  new RequestUtils()._mysql('searchtasks', args, function(result, params) { _self._data['0'] = result;
                                                                            _self._createElements();
                                                                          }, {pos: (pos) ? pos : null});
};


HandleCPAssistantNoCheck.prototype._retrieveNotes = function() {
  var _self = this;
  var base = this._data['cond'];
  var args = '&c=' + JSON.stringify(base);
  new RequestUtils()._mysql('getnotes', args, function(result, params) { _self._data['note'] = result;
                                                                         _self._createElements();
                                                                       }, null);
};

HandleCPAssistantNoCheck.prototype._retrieveEvents = function() {
  var _self = this;
  var base = this._data['event_cond'];
  var args = '&c=' + JSON.stringify(base) + '&ts=' + JSON.stringify(this._data['event_select']) + '&tj=' + JSON.stringify(this._data['event_join']);
  new RequestUtils()._mysql('getevents', args, function(result, params) { _self._data['event'] = result;
                                                                          _self._createElements();
                                                                        }, null);
};